package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallGoodsHistoryMapper;
import org.linlinjava.litemall.db.domain.LitemallHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class GoodsHistoryService {
    @Autowired
    private LitemallGoodsHistoryMapper historyMapper;

    public List<LitemallHistory> queryOne(String goodsname){
        return historyMapper.queryHistory(goodsname);
    }

    public int insertHistory(HashMap map)
    {
        return historyMapper.insertHistory(map);
    }

}
